home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / amigaoscd / amigapluscd / AP-Website / news / admin / update_author.php < prev    next >
PHP Script  |  2002-01-27  |  772b  |  29 lines

  1. <?php
  2.     
  3.     $server = "db04.puretec.de";
  4.     $db = "db24905524";
  5.     $login = "p343302";
  6.     $pass = "90f42902";
  7.     
  8.     $dbwww = mysql_connect($server,$login,$pass);
  9.     mysql_select_db($db,$dbwww);
  10.  
  11.     if($short_name=="")
  12.         $error = "Eine Abkürzung muss mindestens eingegeben werden!";
  13.  
  14.     $query = "update amigaplusnews_authors set short_name = '$short_name', full_name = '$full_name' where id = $id";
  15.     //echo mysql_errno().": ".mysql_error()."<br>";
  16.     
  17.     if(!$error)
  18.     {
  19.         mysql_query($query,$dbwww);
  20.         header("Location: index.php");
  21.     }
  22. ?>
  23. <html>
  24. <head><title>Fehler</title></head>
  25. <body bgcolor="#66CCFF" text="#000000">
  26. <?php echo $error ?><br>(Weiter mit dem Back-Button des Browsers)
  27. </body>
  28. </html>
  29.